package com.han.spring.sboot._004_Spring_Boot_features._235_Application_Events_and_Listeners;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
* @author hanpeng
* @version 创建时间：2020年7月28日 下午4:24:23
* @ClassName 类名称
* @Description 类描述
*/
@SpringBootApplication
public class SpringBootApp {
	public static void main(String[] args) {
		/*代码注册
		 * SpringApplication app = new SpringApplication(SpringBootApp.class);
		app.addListeners(new ApplicationStartedEventListener(),
				new ApplicationReadyEventListener(),
				new ApplicationFailedEventListener());
		app.run(args);*/
		///spring.factories 注册
		SpringApplication.run(SpringBootApp.class,args);
	}
}
